cmake_minimum_required(VERSION 3.5 FATAL_ERROR)

project(use-message
  LANGUAGES CXX
  )

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_PREFIX_PATH /home/jiangli/repo/tutorials/cmake-tutorial/chapter9/03/output/share/cmake/example)
find_package(message REQUIRED CONFIG)

if(message_FOUND)
  message(STATUS "Found message: (found version ${message_VERSION})")
  
endif()

include_directories(/home/jiangli/repo/tutorials/cmake-tutorial/chapter9/03/output/include)

add_executable(use_message use_message.cpp)

target_link_libraries(use_message message::message-shared)
